<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd" >

<!--
* The Trustees of Columbia University in the City of New York
* licenses this file to you under the Educational Community License,
* Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at:
*
* http://opensource.org/licenses/ecl2.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->

<head>
	<title><wicket:message key="page.title" /></title>
	<script type="text/javascript">
		function hideFeedbackPanel(id){
			var formFeedback = document.getElementById(id);
			if(formFeedback != null){
				formFeedback.style.display = 'none';
			}
		}
		
		function hideFeedbackTimer(id){
			setTimeout('hideFeedbackPanel("' + id + '")', 5000);
		}
		
		var show = true;
		function toggleAdvancedSearch(){
			var advancedSearchSpan = document.getElementById('advancedSearchSpan');
			var showAdvancedSearchLink = document.getElementById('showAdvancedSearchLink');
			var hideAdvancedSearchLink = document.getElementById('hideAdvancedSearchLink');
			if(show){
				advancedSearchSpan.style.display = '';
				showAdvancedSearchLink = 'none';
				hideAdvancedSearchLink = '';
			}else{
				advancedSearchSpan.style.display = 'none';
				showAdvancedSearchLink = '';
				hideAdvancedSearchLink = 'none';
			}
			show = !show;
		}
		var loadSemaphore = false;
		function wicketGlobalPreCallHandler() {
			//wait half a second
			loadSemaphore = true;
			setTimeout("showLoading()", 500);
		}
		function wicketGlobalPostCallHandler() {
			hideLoading();
		}
		function wicketGlobalFailureHandler() {
			hideLoading();
		}
		
		
		function showLoading(){
			if(loadSemaphore){
				$(".loading").show();
			}
		}
		
		function hideLoading(){
			loadSemaphore = false;
			$(".loading").hide();
		}
	</script>
</head>     
<body>
	<div class="portletBody">
		<ul class="navIntraTool actionToolbar" role="menu">
			<wicket:enclosure child="accessPageLink">
			<li class="firstToolBarItem" role="menuitem">
				<span>
					<a wicket:id="accessPageLink">
						<span wicket:id="firstLinkLabel">[firstLinkLabel]</span>
					</a>
				</span>
			</li>
			</wicket:enclosure>
			<wicket:enclosure child="shoppingAdminLink">
			<li role="menuitem">
				<span>
					<a wicket:id="shoppingAdminLink">
						<span wicket:id="secondLinkLabel">[secondLinkLabel]</span>
					</a>
				</span>
			</li>
			</wicket:enclosure>
			<wicket:enclosure child="shoppingStatsLink">
			<li role="menuitem">
				<span>
					<a wicket:id="shoppingStatsLink">
						<span wicket:id="shoppingStatsLinkLabel">[shoppingStatsLinkLabel]</span>
					</a>
				</span>
			</li>
			</wicket:enclosure>
			<wicket:enclosure child="searchUsersLink">
			<li role="menuitem">
				<span>
					<a wicket:id="searchUsersLink">
						<span wicket:id="thirdLinkLabel">[thirdLinkLabel]</span>
					</a>
				</span>
			</li>
			</wicket:enclosure>
			<wicket:enclosure child="searchAccessLink">
			<li role="menuitem">
				<span>
					<a wicket:id="searchAccessLink">
						<span wicket:id="searchAccessLinkLabel">[thirdLinkLabel]</span>
					</a>
				</span>
			</li>
			</wicket:enclosure>
			<wicket:enclosure child="administrateLink">
			<li role="menuitem">
				<span>
					<a wicket:id="administrateLink">
						<span wicket:id="administrateLinkLabel">[administrateLabel]</span>
					</a>
				</span>
			</li>
			</wicket:enclosure>
		</ul>
		
		<span wicket:id="feedback">feedbackmessages will be put here</span>
		
		<wicket:child />
	
	</div>
	<div class="loading" style="display: none; position: absolute; overflow: hidden; z-index: 1001; outline: 0px none; height: 100%; width: 100%; top: 0px; left: 0px;background-color:grey;filter:alpha(opacity=10);opacity:.1;">
	</div>
	<div class="loading" style="display: none; position:absolute; width:100%; text-align:center; top:300px; overflow: hidden; z-index: 1002;">
		<img src="images/loading.gif" border=0>
	</div> 
</body>
</html>